package com.ecric.http.http;

import android.app.Activity;
import android.content.Context;


import org.androidannotations.annotations.EBean;
import org.androidannotations.annotations.RootContext;

import java.io.Serializable;
import java.util.List;

/**
 * <h3>Description</h3>
 * TODO
 * <h3>Author</h3> Eric
 * <h3>Date</h3> 2017/9/7 10:21
 * <h3>Copyright</h3> Copyright (c)2017 Shenzhen TLKY  Co., Ltd. Inc. All rights reserved.
 *
 * scope = EBean.Scope.Singleton 指定该Bean为单例模式
 */
@EBean(scope = EBean.Scope.Singleton)
public class WeatherBean implements Serializable{

//    /** 会在子类init_方法中被初始化 */
//    @RootContext
//    Context mContext;
//    @RootContext
//    Activity mActivity;

//    @RootContext
//    void setContext(Context context){
//        // do something with context
//    }

    /**
     * message : Success !
     * status : 200
     * city : 北京
     * count : 3
     * data : {"shidu":"52%","pm25":17,"pm10":54,"quality":"良","wendu":"22","ganmao":"极少数敏感人群应减少户外活动","yesterday":{"date":"06日星期三","sunrise":"05:45","high":"高温 31.0℃","low":"低温 18.0℃","sunset":"18:39","aqi":38,"fx":"北风","fl":"<3级","type":"晴","notice":"lovely sunshine，尽情享受阳光的温暖吧"},"forecast":[{"date":"07日星期四","sunrise":"05:46","high":"高温 31.0℃","low":"低温 19.0℃","sunset":"18:38","aqi":39,"fx":"西南风","fl":"<3级","type":"晴","notice":"lovely sunshine，尽情享受阳光的温暖吧"},{"date":"08日星期五","sunrise":"05:47","high":"高温 30.0℃","low":"低温 20.0℃","sunset":"18:36","aqi":98,"fx":"东风","fl":"<3级","type":"多云","notice":"今日多云，骑上单车去看看世界吧"},{"date":"09日星期六","sunrise":"05:48","high":"高温 29.0℃","low":"低温 22.0℃","sunset":"18:34","aqi":81,"fx":"南风","fl":"<3级","type":"阴","notice":"灰蒙蒙的天空就像模糊了的眼睛"},{"date":"10日星期日","sunrise":"05:49","high":"高温 26.0℃","low":"低温 20.0℃","sunset":"18:33","aqi":109,"fx":"东南风","fl":"<3级","type":"阵雨","notice":"今日有短时阵雨，外出请携带雨具"},{"date":"11日星期一","sunrise":"05:50","high":"高温 29.0℃","low":"低温 18.0℃","sunset":"18:31","aqi":42,"fx":"南风","fl":"<3级","type":"晴","notice":"天气干燥，请适当增加室内湿度"}]}
     */

    private String message;
    private int status;
    private String city;
    private int count;
    /**
     * shidu : 52%
     * pm25 : 17.0
     * pm10 : 54.0
     * quality : 良
     * wendu : 22
     * ganmao : 极少数敏感人群应减少户外活动
     * yesterday : {"date":"06日星期三","sunrise":"05:45","high":"高温 31.0℃","low":"低温 18.0℃","sunset":"18:39","aqi":38,"fx":"北风","fl":"<3级","type":"晴","notice":"lovely sunshine，尽情享受阳光的温暖吧"}
     * forecast : [{"date":"07日星期四","sunrise":"05:46","high":"高温 31.0℃","low":"低温 19.0℃","sunset":"18:38","aqi":39,"fx":"西南风","fl":"<3级","type":"晴","notice":"lovely sunshine，尽情享受阳光的温暖吧"},{"date":"08日星期五","sunrise":"05:47","high":"高温 30.0℃","low":"低温 20.0℃","sunset":"18:36","aqi":98,"fx":"东风","fl":"<3级","type":"多云","notice":"今日多云，骑上单车去看看世界吧"},{"date":"09日星期六","sunrise":"05:48","high":"高温 29.0℃","low":"低温 22.0℃","sunset":"18:34","aqi":81,"fx":"南风","fl":"<3级","type":"阴","notice":"灰蒙蒙的天空就像模糊了的眼睛"},{"date":"10日星期日","sunrise":"05:49","high":"高温 26.0℃","low":"低温 20.0℃","sunset":"18:33","aqi":109,"fx":"东南风","fl":"<3级","type":"阵雨","notice":"今日有短时阵雨，外出请携带雨具"},{"date":"11日星期一","sunrise":"05:50","high":"高温 29.0℃","low":"低温 18.0℃","sunset":"18:31","aqi":42,"fx":"南风","fl":"<3级","type":"晴","notice":"天气干燥，请适当增加室内湿度"}]
     */

    private DataBean data;

    public WeatherBean() {
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {

        public DataBean() {
        }

        private String shidu;
        private double pm25;
        private double pm10;
        private String quality;
        private String wendu;
        private String ganmao;
        /**
         * date : 06日星期三
         * sunrise : 05:45
         * high : 高温 31.0℃
         * low : 低温 18.0℃
         * sunset : 18:39
         * aqi : 38.0
         * fx : 北风
         * fl : <3级
         * type : 晴
         * notice : lovely sunshine，尽情享受阳光的温暖吧
         */

        private YesterdayBean yesterday;
        /**
         * date : 07日星期四
         * sunrise : 05:46
         * high : 高温 31.0℃
         * low : 低温 19.0℃
         * sunset : 18:38
         * aqi : 39.0
         * fx : 西南风
         * fl : <3级
         * type : 晴
         * notice : lovely sunshine，尽情享受阳光的温暖吧
         */

        private List<ForecastBean> forecast;

        public String getShidu() {
            return shidu;
        }

        public void setShidu(String shidu) {
            this.shidu = shidu;
        }

        public double getPm25() {
            return pm25;
        }

        public void setPm25(double pm25) {
            this.pm25 = pm25;
        }

        public double getPm10() {
            return pm10;
        }

        public void setPm10(double pm10) {
            this.pm10 = pm10;
        }

        public String getQuality() {
            return quality;
        }

        public void setQuality(String quality) {
            this.quality = quality;
        }

        public String getWendu() {
            return wendu;
        }

        public void setWendu(String wendu) {
            this.wendu = wendu;
        }

        public String getGanmao() {
            return ganmao;
        }

        public void setGanmao(String ganmao) {
            this.ganmao = ganmao;
        }

        public YesterdayBean getYesterday() {
            return yesterday;
        }

        public void setYesterday(YesterdayBean yesterday) {
            this.yesterday = yesterday;
        }

        public List<ForecastBean> getForecast() {
            return forecast;
        }

        public void setForecast(List<ForecastBean> forecast) {
            this.forecast = forecast;
        }

        public static class YesterdayBean {
            public YesterdayBean() {
            }

            private String date;
            private String sunrise;
            private String high;
            private String low;
            private String sunset;
            private double aqi;
            private String fx;
            private String fl;
            private String type;
            private String notice;

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getSunrise() {
                return sunrise;
            }

            public void setSunrise(String sunrise) {
                this.sunrise = sunrise;
            }

            public String getHigh() {
                return high;
            }

            public void setHigh(String high) {
                this.high = high;
            }

            public String getLow() {
                return low;
            }

            public void setLow(String low) {
                this.low = low;
            }

            public String getSunset() {
                return sunset;
            }

            public void setSunset(String sunset) {
                this.sunset = sunset;
            }

            public double getAqi() {
                return aqi;
            }

            public void setAqi(double aqi) {
                this.aqi = aqi;
            }

            public String getFx() {
                return fx;
            }

            public void setFx(String fx) {
                this.fx = fx;
            }

            public String getFl() {
                return fl;
            }

            public void setFl(String fl) {
                this.fl = fl;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getNotice() {
                return notice;
            }

            public void setNotice(String notice) {
                this.notice = notice;
            }
        }

        public static class ForecastBean {

            public ForecastBean() {
            }

            private String date;
            private String sunrise;
            private String high;
            private String low;
            private String sunset;
            private double aqi;
            private String fx;
            private String fl;
            private String type;
            private String notice;

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getSunrise() {
                return sunrise;
            }

            public void setSunrise(String sunrise) {
                this.sunrise = sunrise;
            }

            public String getHigh() {
                return high;
            }

            public void setHigh(String high) {
                this.high = high;
            }

            public String getLow() {
                return low;
            }

            public void setLow(String low) {
                this.low = low;
            }

            public String getSunset() {
                return sunset;
            }

            public void setSunset(String sunset) {
                this.sunset = sunset;
            }

            public double getAqi() {
                return aqi;
            }

            public void setAqi(double aqi) {
                this.aqi = aqi;
            }

            public String getFx() {
                return fx;
            }

            public void setFx(String fx) {
                this.fx = fx;
            }

            public String getFl() {
                return fl;
            }

            public void setFl(String fl) {
                this.fl = fl;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getNotice() {
                return notice;
            }

            public void setNotice(String notice) {
                this.notice = notice;
            }
        }
    }
}
